package com.fishery.search.entity;

import com.fishery.search.util.CamelUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value = "搜索条件")
public class SearchCondition {

	@ApiModelProperty("搜索字段")
	private String keyword;

	@ApiModelProperty("搜索内容")
	private String content;

	@ApiModelProperty("页码")
	private Integer current;

	@ApiModelProperty("尺寸")
	private Integer size;

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getCurrent() {
		return current;
	}

	public String getKeyword() {
		return keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = CamelUtil.camelToUnderline(keyword);
	}

	public void setCurrent(Integer current) {
		this.current = current;
	}

	public Integer getSize() {
		return size;
	}

	public void setSize(Integer size) {
		this.size = size;
	}
}
